<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript" src="__PUBLIC__/Js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Components/ueditor/editor_config.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Components/ueditor/editor_all.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/Components/ueditor/themes/default/ueditor.css">
	<link href="__PUBLIC__/Css/manager.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(document).ready(function(){
            var initialContent=$("#contentDIV").html();
            var editor = new baidu.editor.ui.Editor({
                initialContent:initialContent,
                minFrameHeight: 200,//初始化框架大小
                autoFloatEnabled: false,//工具栏自动浮动-》关闭
                textarea:'maincontent'//form表单将通过该参数获得表单提交的数据
            });
            editor.render("content");
        });
    </script>
</head>
<body>
<h2>文章更新 <a href="__URL__/index" id="backBTN" >[取消返回]</a></h2>

<form action="__URL__/update" method="post">
    <input type="hidden" name="id" value="{$list['id']}">
    <table id="user_Add">
        <tr>
            <th class="tRight">标题</th>
            <td><input type="text" name="title" value="{$list['title']}" size="80"></td>
        </tr>
        <tr>
            <th  class="tRight">软文索引</th>
            <td><textarea rows="5" cols="80" name="indexcontent" >{$list['indexcontent']}</textarea></td>
        </tr>
        <tr>
            <th class="tRight">正文</th>
            <td>
                <script type="text/plain" id="content" style="width:800px;"></script>
                <div id="contentDIV" style="display: none;">
                    {$list['maincontent']}
                </div>
            </td>
        </tr>
        <tr>
			<th class="tRight">&nbsp;</th>
            <td>
                <input type="submit" value="确认修改">
            </td>
        </tr>
    </table>
</form>
</body>
</html>